<div class="am-modal-bd">
    <ul>
        <li>
            <p class="line_1">中奖者</p>
            <p><?php echo $detail->user_name; ?></p>
        </li>
        <?php if ($detail->address && $detail->prize_type == 1) : ?>
        <li>
            <p class="line_1">收货地址</p>
            <p><?php echo $address->receiver_name, '，', $address->tel, '，', $address->code, '<br>', $address->detailed; ?></p>
        </li>
        <?php endif; ?>

        <li>
            <p class="line_1">奖品类型</p>
            <p><?php switch ($detail->prize_type) {
                case 1:
                    echo '实物';
                    break;
                case 2:
                    echo '虚拟物品';
                    break;
                case 3:
                    echo '积分';
                    break;
                default:
                    break;
            } ?></p>
        </li>
        <li>
            <p class="line_1">奖品名称</p>
            <p><?php echo $detail->prize_name; ?></p>
        </li>
        <li>
            <p class="line_1">状态</p>
            <p><?php 
                switch ($detail->status) {
                     case 1:
                        echo '待领奖';
                         break;
                     case 2:
                        echo '待发货';
                         break;
                     case 3:
                        echo '颁奖成功';
                         break;
                     default:
                         break;
                 } ?>
             </p>
        </li>
        <li>
            <p class="line_1">奖品过期时间</p>
            <p><?php echo $detail->effective_date; ?></p>
        </li>
        <li>
            <p class="line_1">中奖时间</p>
            <p><?php echo $detail->created_at; ?></p>
        </li>
    </ul>
</div>

<div class="am-modal-fd">
    <?php if ($detail->status == 1) : ?>
    <p class="express-state"><span>发货状态：</span><b>未领奖</b></p>
    <?php elseif ($detail->status == 2) : ?>
    <p class="express-state"><span>发货状态：</span><b>待发货</b></p>
    <?php elseif ($detail->status == 3) : ?>
    <p class="express-state"><span>发货状态：</span><b>颁奖成功</b></p>
    <?php endif; ?>

    <!-- <?php if ($detail->address && $detail->status ==3 && $detail->prize_type == 1) : ?>
    <p>物流：申通快递</p>
    <p>运单号：032821400663249</p>
    <?php endif; ?> -->
</div>
<?php if ($detail->status != 2) : ?>
<div class="am-modal-fd am-modal-fd-status2">
    <a href="javascript:;" class="am-btn">确认颁奖</a>
</div>
<?php endif; ?>